#include "Message.h"
#include "World.h"
#include "PostOffice.h"

void Message::setEmitter(Entity* e)
{
	emitter__ = e;
}

Message::Message(Entity* e, const std::string& m)
{
	emitter__ = e;
	message__ = m;
}

Message::Message(const std::string& m)
{
	emitter__ = 0;
	message__ = m;
}

Message::Message(Entity* e, const std::string& m,const std::string& ex)
{
   emitter__ = e;
   message__ = m;
   extradata__ =  ex ;            
}

Message::Message(Entity * e, const std::string& m, const std::string& ex, irr::core::vector3df about)
{
   emitter__ = e;
   message__ = m;
   extradata__ =  ex ;
   isAbout__ = about ;
}

Message::~Message()
{
}

std::string& Message::getMessage()
{
	return message__;
}

Entity* Message::getEmitter()
{
	return emitter__;
}

irr::core::vector3df Message::getIsAbout()
{
	return isAbout__;
}

std::string& Message::getExtradata()
{
    return extradata__;                     
}

